import request from "@/utils/request";

// 获取菜单管理列表
export const getMenuListApi = (data) => {
  return request({
    url: "/permission/menu",
    data,
  });
};
// 添加列表
export const addMenuListApi = (data) => {
  return request({
    url: "/permission/menu",
    method: "POST",
    data,
  });
};
// 回显列表
export const showMenuListApi = (id) => {
  return request({
    url: "/permission/menu/" + id,
  });
};
// 编辑列表
export const edlMenuListApi = (data) => {
  return request({
    url: "/permission/menu/" + data.id,
    method: "PUT",
    data,
  });
};
// // 回显列表
// export const addsublevelApi = (data) => {
//   return request({
//     url: "admin/permission/menu",
//     method: "POST",
//     data,
//   });
// };
// 删除列表
export const delsublevelApi = (id) => {
  return request({
    url:"/permission/menu/" + id,
    method: "DELETE",
  });
};

